package cn.bgs.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @program: smart_community
 * @description:
 * @author: Mr.Zhao
 * @create: 2022-06-17 14:19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class VehicleAdd implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "车位中间表id")
    @TableId(value = "vehicle_middle_id", type = IdType.AUTO)
    private Integer vehicleMiddleId;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "小区id")
    private Integer communityId;

    @ApiModelProperty(value = "车位区域id")
    private Integer vehicleAreaId;

    @ApiModelProperty(value = "车位编号id")
    private Integer vehicleNumberId;

    @ApiModelProperty(value = "车辆id")
    private Integer vehicleCarId;

    @ApiModelProperty(value = "小区名称")
    private String communityName;

    @ApiModelProperty(value = "车牌号")
    private String vehicleNumber;

    @ApiModelProperty(value = "编号（01）")
    private String serialNumber;

    @ApiModelProperty(value = "临时停车场自增")
    private Integer temporaryCarParkId;

    @ApiModelProperty(value = "区域（A）")
    private String area;

    @ApiModelProperty(value = "车辆品牌")
    private String vehicleBrand;

    @ApiModelProperty(value = "车辆型号")
    private String vehicleModel;

    @ApiModelProperty(value = "车辆颜色")
    private String vehicleColor;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "姓名")
    private String userName;


    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "停车时间")
    private LocalDateTime accessTime;

    @ApiModelProperty(value = "时长")
    private Double duration;

    @ApiModelProperty(value = "类型（私有、租赁）")
    private String vehicelType;

    @ApiModelProperty(value = "车辆状态（已绑定，未绑定）")
    private String vehicleState;

    @ApiModelProperty(value = "审核状态（成功、认证中、失败）")
    private String auditState;

    @ApiModelProperty(value = "缴费金额")
    private Double payFees;

    @ApiModelProperty(value = "缴费状态（未缴费、已缴费）")
    private String payFeesState;

    @ApiModelProperty(value = "访问状态（生效中、已失效）")
    private String visitState;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd ")//DateTimeFormat 是入参格式化；
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")//JsonFormat是出参格式化。
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "删除标志（y是删除 n是未删除）")
    private String deleteFlag;
}
